how to solve properties of rank of matrix